-- GENERATED SPELL FOR [Hulking Horror] --


function spell0_31413(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(49861,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31413', 8000, 1)
end

function spell1_31413(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31413', 596, 1)
end

function Sorts_31413(pUnit, Event)
local choix_sorts_31413 = math.random(0, 1)
if choix_sorts_31413 == 0 then
pUnit:RegisterEvent('spell0_31413', 1, 1)
end
if choix_sorts_31413 == 1 then
pUnit:RegisterEvent('spell1_31413', 1, 1)
end
end

function mob31413_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31413', math.random(1500, 3000), 1)
end

function mob31413_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31413_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31413_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31413, 1, 'mob31413_Action')
RegisterUnitEvent(31413, 2, 'mob31413_Leave')
RegisterUnitEvent(31413, 3, 'mob31413_Kill')
RegisterUnitEvent(31413, 4, 'mob31413_Die')
